<?php

/*
 * Sistema:
 *
 * Classe: MformTryCache (/public/helpers/php)
 *
 * Histórico:
 *		v. 11/11/2012, EDGARD FANTINI JÚNIOR - efantinij@gmail.com
 *			- versão inicial
 *
 * FRAMWORK: edframe - Copyleft (cc) 2012 EDMAR Sistemas
 */

	class MformTryCache
	{

		function objReturn($e)
		{
			$arq = explode("/",$e->getFile()) ;
			$nivel = count($arq) ;
			$arq = $arq[($nivel-1)] ;
			$var[1] = $e->getMessage() ;
			$var[1] .= "<br><font color=#BFBFBF size=-2>script: ". $arq ;
			$var[1] .= "<br>linha : ". $e->getLine()."</font>" ;
			$var[0] = 'erro' ;
			return $var ;
		}

		function objReturnGet($e)
		{
			$arq = explode("/",$e->getFile()) ;
			$nivel = count($arq) ;
			$arq = $arq[($nivel-1)] ;
			$var = $e->getMessage() ;
			$var .= " - script: ". $arq ;
			$var .= " - linha : ". $e->getLine() ;
			return $var ;
		}
	}

?>
